﻿using System.Xml.Serialization;

namespace GISUtil.KML
{
  /// <summary>
  /// These enums correspond to the Icon used to represent the State of a folder
  /// </summary>
  public enum ItemIconMode
  {
    /// <summary>
    /// The folder is Open 
    /// </summary>
    [XmlEnum(Name = "open")]
    Open,

    /// <summary>
    /// The folder is Closed
    /// </summary>
    [XmlEnum(Name = "closed")]
    Closed,

    /// <summary>
    /// There was an Error accessing the folder (can be combined with Open or Closed)
    /// </summary>
    [XmlEnum(Name = "error")]
    Error,

    /// <summary>
    /// The folder is being fetched (ball representing loading position is on the bottom left of the folder)
    /// </summary>
    [XmlEnum(Name = "fetching0")]
    Fetching0,

    /// <summary>
    /// The folder is being fetched (ball representing loading position is on the middle of the folder)
    /// </summary>
    [XmlEnum(Name = "fetching1")]
    Fetching1,

    /// <summary>
    /// The folder is being fetched (ball representing loading position is on the bottom right  of the folder)
    /// </summary>
    [XmlEnum(Name = "fetching2")]
    Fetching2,
  }
}
